﻿<Window x:Class="Pixentration.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Pixentration" ResizeMode="NoResize" Height="700" Width="700"
        xmlns:my="clr-namespace:Pixentration" xmlns:my1="clr-namespace:Pixentration" Name="ParentWindow">
    <Grid x:Name="LayoutRoot" Background="White">   
        <Grid.RowDefinitions>
            <RowDefinition Height="569*" />
            <RowDefinition Height="92*" />
        </Grid.RowDefinitions>
        <TabControl Margin="0,40,0,0" Background="#FFE5E5E5" Grid.Row="0">
            <TabItem Header="Options" Name="OptionsTab" GotFocus="View_Changed">
                <Grid Background="#FFE5E5E5" Height="315" Width="650" Margin="0,0,0,0.001">
                    <GroupBox Header="Difficulty" HorizontalAlignment="Left" Margin="19,29.537,0,142.999" Width="208"/>
                    <StackPanel HorizontalAlignment="Left" Margin="35,61.537,0,0" Orientation="Vertical" VerticalAlignment="Top" Width="192" Height="74.999">
                        <RadioButton Content="Easy (3 min.)" Height="24" Margin="0,0,32,0" Name="EasyButton" />
                        <RadioButton Content="Medium (3 min. 1 Shuffle)" Height="28" Name="MediumButon" />
                        <RadioButton Content="Hard (3 min. 2 shuffles)" Height="28" Name="HardButton" />
                    </StackPanel>
                    <GroupBox Header="Music" HorizontalAlignment="Left" Margin="19,0,0,30.999" VerticalAlignment="Bottom" Height="92" Width="208">
                        <Slider Name="Vol" Height="20.001" Margin="88,0,28,2" VerticalAlignment="Bottom" ValueChanged="Slider_ValueChanged" />
                    </GroupBox>
                    <StackPanel HorizontalAlignment="Left" Height="24" Margin="67,0,0,66.999" Orientation="Horizontal" VerticalAlignment="Bottom">
                        <RadioButton Name="MusicOn" Content="On" Width="80" Checked="RadioButton_Checked" />
                        <RadioButton Name ="MusicOff" Content="Off" Width="80" Checked="RadioButton_Checked_1" />
                    </StackPanel>
                    <GroupBox Header="Image Source" Margin="259,29.537,19,90.999">
                        <CheckBox Content="Use Stock Images" Height="23" Name="stockImages" Width="327" FontSize="14" Checked="stockImages_Checked" Unchecked="stockImages_Checked" IsChecked="{x:Null}" />
                    </GroupBox>
                    <Button Content="Browse..." HorizontalAlignment="Right" Height="22.999" Margin="0,0,35,113" VerticalAlignment="Bottom" Width="88" Name="Browse" Click="Browse_Click_1" IsEnabled="False" />
                    <Button Content="New Game!" Height="44" Margin="259,0,35,30.999" VerticalAlignment="Bottom" Click="ButtonNewGameClick" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="282,179,0,0" Name="userUrl" VerticalAlignment="Top" Width="213" IsEnabled="False" IsReadOnly="True" />
                    <Label Content="User Supplied Images:" Height="28" HorizontalAlignment="Left" Margin="282,144,0,0" Name="label1" VerticalAlignment="Top" Width="183" />
                </Grid>
            </TabItem>
            <TabItem Header="Game" Name="GameTab" IsEnabled="False" GotFocus="View_Changed">
                <Grid Name="GameBoard" HorizontalAlignment="Center" VerticalAlignment="Center">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <my1:Card x:Name="card1" />
                    <my1:Card x:Name="card2" Grid.Column="1"  />
                    <my1:Card Grid.Column="2" x:Name="card3" />
                    <my1:Card x:Name="card4" Grid.Column="3" />
                    <my1:Card x:Name="card5" Grid.Column="4" />
                    <my1:Card x:Name="card6" Grid.Column="5"  />
                    <my1:Card Grid.Row="1" x:Name="card7" />
                    <my1:Card x:Name="card8" Grid.Column="1" Grid.Row="1"  />
                    <my1:Card x:Name="card9" Grid.Column="2" Grid.Row="1" />
                    <my1:Card x:Name="card10" Grid.Column="3" Grid.Row="1" />
                    <my1:Card x:Name="card11" Grid.Column="4" Grid.Row="1" />
                    <my1:Card x:Name="card12" Grid.Column="5" Grid.Row="1" />
                    <my1:Card x:Name="card13" Grid.Row="2" />
                    <my1:Card Grid.Column="1" x:Name="card14" Grid.Row="2"  />
                    <my1:Card Grid.Column="2" x:Name="card15" Grid.Row="2" />
                    <my1:Card Grid.Column="3" x:Name="card16" Grid.Row="2" />
                    <my1:Card Grid.Column="4" x:Name="card17" Grid.Row="2" />
                    <my1:Card Grid.Column="5" x:Name="card18" Grid.Row="2" />
                    <my1:Card x:Name="card19" Grid.Row="3" />
                    <my1:Card Grid.Column="1" x:Name="card20" Grid.Row="3"  />
                    <my1:Card Grid.Column="2" x:Name="card21" Grid.Row="3" />
                    <my1:Card Grid.Column="3" x:Name="card22" Grid.Row="3" />
                    <my1:Card Grid.Column="4" x:Name="card23" Grid.Row="3" />
                    <my1:Card Grid.Column="5" x:Name="card24" Grid.Row="3" />
                    <my1:Card x:Name="card25" Grid.Row="4"  />
                    <my1:Card Grid.Column="1" x:Name="card26" Grid.Row="4"  />
                    <my1:Card Grid.Column="2" x:Name="card27" Grid.Row="4" />
                    <my1:Card Grid.Column="3" x:Name="card28" Grid.Row="4" />
                    <my1:Card Grid.Column="4" x:Name="card29" Grid.Row="4" />
                    <my1:Card Grid.Column="5" x:Name="card30" Grid.Row="4" />
                    <my1:Card x:Name="card31" Grid.Row="5"  />
                    <my1:Card Grid.Column="1" x:Name="card32" Grid.Row="5"  />
                    <my1:Card Grid.Column="2" x:Name="card33" Grid.Row="5" />
                    <my1:Card Grid.Column="3" x:Name="card34" Grid.Row="5" />
                    <my1:Card Grid.Column="4" x:Name="card35" Grid.Row="5" />
                    <my1:Card Grid.Column="5" x:Name="card36" Grid.Row="5" />
                </Grid>
            </TabItem>
            <TabItem Header="Scoreboard" Name="ScoreBoardTab" GotFocus="View_Changed">
                <Grid Background="#FFE5E5E5">
                    <Grid Background="#FFE5E5E5">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="96*" />
                            <RowDefinition Height="401*" />
                        </Grid.RowDefinitions>
                        <Grid HorizontalAlignment="Stretch" Margin="18,0,19,19" Name="scoreBoardGrid" VerticalAlignment="Stretch" Grid.Row="1">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="0.6*" />
                                <ColumnDefinition Width="*" />
                                <ColumnDefinition Width="0.6*" />
                            </Grid.ColumnDefinitions>
                            <Label HorizontalAlignment="Stretch" Name="nameGrid" VerticalAlignment="Stretch" Grid.Column="0" FontSize="20" HorizontalContentAlignment="Center" VerticalContentAlignment="Top" />
                            <Label HorizontalAlignment="Stretch" Name="dateGrid" VerticalAlignment="Stretch" Grid.Column="1" FontSize="20" HorizontalContentAlignment="Center" />
                            <Label HorizontalAlignment="Stretch" Name="scoreGrid" VerticalAlignment="Stretch" Grid.Column="2" FontSize="20" HorizontalContentAlignment="Center" />
                        </Grid>
                        <TextBlock HorizontalAlignment="Stretch" Height="80" Margin="120,12,198,0" Text="High Scores" VerticalAlignment="Top" FontSize="45" TextAlignment="Center" Grid.Row="0" />
                    </Grid>
                </Grid>
            </TabItem>
            <TabItem Header="About" Name="AboutTab" GotFocus="View_Changed">                
                <Grid Background="#FFE5E5E5" >
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*" />
                        <RowDefinition Height=".5*" />
                    </Grid.RowDefinitions>
                    <Button Content="Help" Margin="234,0,274,88"  VerticalAlignment="Bottom" Width="161" Name="HelpButton" Click="HelpButton_Click" FontSize="24" FontWeight="Bold" Grid.Row="1" />
                    <RichTextBox Background="#FFE5E5E5" HorizontalAlignment="Center" Margin="149,76,87,25" Name="richTextBox1" VerticalAlignment="Center" IsReadOnly="True" IsDocumentEnabled="True" FontSize="15" HorizontalContentAlignment="Center" BorderThickness="0" Height="231" Width="432" VerticalContentAlignment="Stretch">
                        <FlowDocument>
                            <Paragraph>
                                version 2.0
                                <LineBreak/>
                                © 2011 Vandelay Industries
                                <LineBreak/>
                                Designed and developed by
                                <LineBreak/>
                                Jim Travis, Jeff Kendall, and Mike Piazza
                                <LineBreak/>
                                The Source Code for this Project can be found at
                                <LineBreak/>
                                <Hyperlink NavigateUri="http://pixentration.codeplex.com/" RequestNavigate="Hyperlink_RequestNavigate">http://pixentration.codeplex.com/</Hyperlink>
                                <LineBreak/>
                                To read the help manual you will need adobe reader
                                <LineBreak/>
                                <Hyperlink NavigateUri="http://get.adobe.com/reader/" RequestNavigate="Hyperlink_RequestNavigate">Get Adobe Reader</Hyperlink>
                            </Paragraph>
                        </FlowDocument>
                    </RichTextBox>
                </Grid>
            </TabItem>
        </TabControl>
        <TextBlock HorizontalAlignment="Center" Height="32" Margin="0,8,0,0"  VerticalAlignment="Top" Width="280" FontSize="24"><Run FontWeight="Bold" FontStyle="Italic" Text="P i x e n t r a t i o n"/></TextBlock>
        <Grid Name="lowerGrid" VerticalAlignment="Stretch"  Visibility="Visible" Opacity="0" Grid.Row="1" Margin="1,0,-1,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <TextBlock Text="Time Left:" FontSize="20" FontWeight="Bold" TextAlignment="Center" VerticalAlignment="Center" Margin="14,8,8,17" Grid.Column="2" Name="Time" />
            <TextBlock Text="Score:  " FontWeight="Bold" FontSize="20" TextAlignment="Center" Name="Score" Margin="24,8,51,19" VerticalAlignment="Center" HorizontalAlignment="Stretch" Grid.Column="0" />
            <Label Name="ScoreLabel" FontSize="26" FontWeight="Bold" HorizontalContentAlignment="Left" VerticalContentAlignment="Center" HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="8,13,8,27" Grid.Column="1" Content="0" Height="Auto" />
            <Label Name="TimeLeftLabel" FontSize="26" FontWeight="Bold" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Stretch" Margin="20,12,15,26" Grid.Column="3" Height="Auto" />
            <Button Content="Quit Game" Name="quitButton" Height="Auto" Width="Auto" Click="QuitButton_Click" Margin="24,11,24,14" Grid.Column="4" IsEnabled="False" VerticalAlignment="Center" />
        </Grid>
    </Grid>


</Window>